package com.zhang.mapper;

import com.zhang.entity.ShoppingProduct;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZhangD
 * @since 2021-07-13
 */
@Mapper
public interface ShoppingProductMapper extends BaseMapper<ShoppingProduct> {

    @Select("select product_name from shopping_product where product_id=#{pid}")
    String select(@Param("pid") String pid);
}
